<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>大家动弹</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    <div class="main">


        	 <div class="head"><span>每日箴言</span></div>
             
             
             <style>
			 	.list li{
					border-bottom:1px dashed #CCCCCC; margin:20px 0 0 0;
				}
				.list li p{
					margin:0; padding:0;
				}
			 </style>
             <ul class="list">
          	
              {get sql="SELECT * FROM `table_say` WHERE  status=99 ORDER BY sayid DESC" rows="20" page="$page"}
              {php list($keyid, $verify) = keyid_make('say', 'description', $r[sayid]);}
                <li>
                    <p><a href="{url($r[url])}" target="{$target}">{str_cut($r[description], 300)}</a> <br/>发布于：{date('Y-m-d',$r[updatetime])} </p>
                </li>
    
              {/get}
            </ul>
            
            <div class="pagination">
            	{$pages}
            </div>

    </div>
    
    <div class="aside">
    	
        {if $_userid == 1}
    	<div class="head">每日箴言</div>
        <div class="inner">
        	<a href="{url("?module=$module&action=add")}"><img src="skin/images/share.gif"/></a>
        </div>
        {/if}
    	
        <div class="head">热门箴言</div>
        <div>
             <ul>
	  {get sql="select url,userid,username,description,hits from table_say order by sayid DESC" rows="10"}
		<li>({$r[hits]}) &nbsp;<a href="{url("?module=space&userid=$r[userid]")}">@{$r[username]}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{$r[description]}</a></li>
	  {/get}
      </ul>
        </div>
          
    </div>
</div>


{template 'footer.html'}

